package com.liliudong.keelflower.upms.admin.controller.gen;

import com.liliudong.keelflower.common.gen.CodeGenerator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liudong.li
 */
@RestController
@RequestMapping("/gen")
public class GenController {

    private final CodeGenerator codeGenerator;

    public GenController(CodeGenerator codeGenerator) {
        this.codeGenerator = codeGenerator;
    }

    @RequestMapping("/execute")
    public void gen() {
        codeGenerator.gen();
    }
}
